var isDebug = true;
require.config({
    urlArgs: isDebug ? "debug=true" : "nocache=" + Math.random(),
    baseUrl: "../scripts",
    paths: {
        jquery: "lib/jQuery/jquery-3.4.1",
        jqueryLoader:"jquery.loader",
        cookie: "lib/jQuery/plugins/jquery.cookie",
        browser: "lib/jQuery/plugins/jquery.browser",
        md5: "lib/jQuery/plugins/jquery.md5",
        //my-plugins
        time: "lib/jQuery/my-plugins/jquery.time",
        url: "lib/jQuery/my-plugins/jquery.url",
        percent: "lib/jQuery/my-plugins/jquery.percent",
        fileName: "lib/jQuery/my-plugins/jquery.fileName",
        imgErrorHandler: "lib/jQuery/my-plugins/jquery.imgErrorHandler",
        photoviewer: "lib/jQuery/my-plugins/jquery.photoviewer/jquery.photoviewer",
        scaleImage: "lib/jQuery/my-plugins/jquery.scaleImage",
    },
    shim: {
        cookie: {
            deps: ["jquery"],
            exports: "jQuery",
        },
        browser: {
            deps: ["jquery"],
            exports: "jQuery",
        },
        time: {
            deps: ["jquery"],
            exports: "jQuery",
        },
        url: {
            deps: ["jquery"],
            exports: "jQuery",
        },
        md5: {
            deps: ["jquery"],
            exports: "jQuery",
        },
        percent: {
            deps: ["jquery"],
            exports: "jQuery",
        },
        fileName: {
            deps: ["jquery"],
            exports: "jQuery",
        },
        imgErrorHandler: {
            deps: ["jquery"],
            exports: "jQuery",
        },
        photoviewer: {
            deps: ["jquery"],
            exports: "jQuery",
        },
        scaleImage: {
            deps: ["jquery"],
            exports: "jQuery",
        }
    },
});

require([
    "jquery",
    "cookie",
    "browser",
    "time",
    "url",
    "md5",
    "percent",
    "fileName",
    "imgErrorHandler",
    "photoviewer"
], function (
    $,
    cookie,
    browser,
    time,
    url,
    md5,
    percent,
    fileName,
    imgErrorHandler,
    photoviewer
) {
    // if (window.main) {
    //     main($);
    // }
});
